package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Cost;
import tech.aistar.entity.CotenancyRequire;
import tech.aistar.mapper.AgentMapper;
import tech.aistar.mapper.CotenancyRequireMapper;
import tech.aistar.service.ICotenancyRequireService;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: shuaiguo
 * @Date: 2020/10/01/17:41
 * @Description:
 */
@Service
public class CotenancyRequireImpl implements ICotenancyRequireService {
    @Autowired
    private CotenancyRequireMapper cotenancyRequireMapper;
    @Override
    public List<CotenancyRequire> selectAll() {
        return cotenancyRequireMapper.selectAll();
    }

    @Override
    public void insert(CotenancyRequire cotenancyRequire) {
cotenancyRequireMapper.insert(cotenancyRequire);
    }

    @Override
    public void updateByPrimaryKey(CotenancyRequire cotenancyRequire) {
cotenancyRequireMapper.updateByPrimaryKey(cotenancyRequire);
    }

    @Override
    public void deleteByPrimaryKey(Integer id) {
cotenancyRequireMapper.deleteByPrimaryKey(id);
    }

    @Override
    public CotenancyRequire findById(Integer integer) {
        return cotenancyRequireMapper.findById(integer);
    }

    @Override
    public CotenancyRequire findByLandlordId(Integer integer) {
        return cotenancyRequireMapper.findByLandlordId(integer);
    }

    @Override
    public CotenancyRequire findByhouseId(Integer integer) {
        return cotenancyRequireMapper.findByhouseId(integer);
    }

}
